package com.vanzo.ui;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;

import com.vanzo.encryption.R;

/**
 * Created by tisen on 2018/3/6.
 */

public class TestActivity extends BaseActivity implements View.OnClickListener {


    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_test);
        findViewById(R.id.test_nfc).setOnClickListener(this);
        findViewById(R.id.test_at).setOnClickListener(this);
        findViewById(R.id.test_encryption).setOnClickListener(this);
        findViewById(R.id.test_service).setOnClickListener(this);
        findViewById(R.id.test_stress).setOnClickListener(this);
        findViewById(R.id.test_bind).setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        Intent intent = new Intent();
        switch (v.getId()) {
            case R.id.test_nfc:
                intent.setClass(this, com.vanzo.nfc.TestActivity.class);
                break;
            case R.id.test_at:
                intent.setClass(this, com.vanzo.instruction.TestActivity.class);
                break;
            case R.id.test_encryption:
                intent.setClass(this, com.vanzo.encryption.TestActivity.class);
                break;
            case R.id.test_service:
                intent.setClass(this, com.vanzo.service.TestActivity.class);
                break;
            case R.id.test_stress:
                intent.setClass(this, com.vanzo.ui.StressTestActivity.class);
                break;
            case R.id.test_bind:
                intent.setClass(this, com.vanzo.ui.NFCBindActivity.class);
                break;
        }
        startActivity(intent);
    }
}
